﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_TiepNhanThietBi : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("AdvNhanVienBanHang")]
        private ADVObjects _AdvNhanVienBanHang;
        [AccessedThroughProperty("AdvNhanVienTiepNhan")]
        private ADVObjects _AdvNhanVienTiepNhan;
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("CboDieuKienSuaChua")]
        private ComboBox _CboDieuKienSuaChua;
        [AccessedThroughProperty("CboTrangThai")]
        private ComboBox _CboTrangThai;
        [AccessedThroughProperty("CKConHanBaoHanh")]
        private CheckBox _CKConHanBaoHanh;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdTimHangHoa")]
        private Button _CmdTimHangHoa;
        [AccessedThroughProperty("CmdTimSoSerial")]
        private Button _CmdTimSoSerial;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("GroupBox2")]
        private GroupBox _GroupBox2;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label10")]
        private Label _Label10;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label12")]
        private Label _Label12;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label15")]
        private Label _Label15;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label17")]
        private Label _Label17;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label21")]
        private Label _Label21;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtDiaChi")]
        private TextBox _TxtDiaChi;
        [AccessedThroughProperty("TxtDienGiai")]
        private TextBox _TxtDienGiai;
        [AccessedThroughProperty("TxtDienThoaiKhachHang")]
        private TextBox _TxtDienThoaiKhachHang;
        [AccessedThroughProperty("TxtFax")]
        private TextBox _TxtFax;
        [AccessedThroughProperty("TxtGioTiepNhan")]
        private MaskedTextBox _TxtGioTiepNhan;
        [AccessedThroughProperty("TxtMaThietBi")]
        private TextBox _TxtMaThietBi;
        [AccessedThroughProperty("TxtMobile")]
        private TextBox _TxtMobile;
        [AccessedThroughProperty("TxtNgayBan")]
        private C1DateEdit _TxtNgayBan;
        [AccessedThroughProperty("TxtNgayChungTu")]
        private C1DateEdit _TxtNgayChungTu;
        [AccessedThroughProperty("TxtNgayHetHanBaoHanh")]
        private C1DateEdit _TxtNgayHetHanBaoHanh;
        [AccessedThroughProperty("TxtNgayTiepNhan")]
        private C1DateEdit _TxtNgayTiepNhan;
        [AccessedThroughProperty("TxtNguoiLienHe")]
        private TextBox _TxtNguoiLienHe;
        [AccessedThroughProperty("TxtSoChungTu")]
        private TextBox _TxtSoChungTu;
        [AccessedThroughProperty("TxtSoChungTuBan")]
        private TextBox _TxtSoChungTuBan;
        [AccessedThroughProperty("TxtSoSerial")]
        private TextBox _TxtSoSerial;
        [AccessedThroughProperty("TxtTenThietBi")]
        private TextBox _TxtTenThietBi;
        [AccessedThroughProperty("TxtTinhTrangThietBi")]
        private TextBox _TxtTinhTrangThietBi;
        private DataView cFrmData;
        public string cFrmKhoa;
        private string cFrmKhoaOld;
        private string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        private string mLoaiChungTu;
        private clsDMDoiTuong objDT;
        private clsDMHangHoa objHH;
        private clsSoChungTu objSoCT;
        private clsSuaChuaThietBi objTN;
        private clsXuatKho objXK;
        private clsXuatKhoChiTiet objXKCT;

        public Frm_TiepNhanThietBi()
        {
            base.Load += new EventHandler(this.Frm_TiepNhanThietBi_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmKhoaOld = "";
            this.cFrmKhoa = "";
            this.cFrmTask = "";
            this.mAllowEdit = true;
            this.mAllowDel = false;
            this.mAllowView = false;
            this.mAllowAdd = false;
            this.mLoaiChungTu = "SCBH";
            this.objSoCT = new clsSoChungTu();
            this.objXK = new clsXuatKho();
            this.objXKCT = new clsXuatKhoChiTiet();
            this.objHH = new clsDMHangHoa();
            this.objDT = new clsDMDoiTuong();
            this.objTN = new clsSuaChuaThietBi();
            this.InitializeComponent();
        }

        private void AdvKhachHang_ValueChanged(object sender, EventArgs e)
        {
            if (this.AdvKhachHang.Value.Trim() == "")
            {
                this.TxtDiaChi.Text = "";
                this.TxtDienThoaiKhachHang.Text = "";
                this.TxtFax.Text = "";
            }
            else
            {
                this.objDT.Load(this.AdvKhachHang.Value);
                this.TxtDiaChi.Text = this.objDT.DiaChi;
                this.TxtDienThoaiKhachHang.Text = this.objDT.DienThoai;
                this.TxtFax.Text = this.objDT.Fax;
            }
        }

        public bool CheckIvalid()
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtMaThietBi.Tag), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập thiết bị tiếp nhận.", ""));
                this.CmdTimHangHoa.Focus();
                return false;
            }
            if (this.AdvKhachHang.Value.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn kh\x00e1ch h\x00e0ng.", ""));
                this.AdvKhachHang.Focus();
                return false;
            }
            if (this.TxtTinhTrangThietBi.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn t\x00ecnh trạng thiết bị khi tiếp nhận.", ""));
                this.TxtTinhTrangThietBi.Focus();
                return false;
            }
            return true;
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.EmptyData();
            this.objSoCT.Load(this.mLoaiChungTu);
            this.TxtSoChungTu.Text = this.objSoCT.CreateVoucher(LVYModule.sLeft(LVYModule.Date2Char(this.TxtNgayChungTu.Text), 6), 1);
            this.cFrmKhoa = modGeneral.CreatKey("SC_TiepNhanThietBi", 15, "");
            this.cFrmTask = "I";
            this.AdvNhanVienTiepNhan.Value = modGeneral.H_USERID;
            this.TxtNgayTiepNhan.Value = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.TxtGioTiepNhan.Text = LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Now.Hour), 2) + ":" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Now.Minute), 2);
            this.EnabledControl = true;
            this.TxtSoSerial.Focus();
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                if (this.objTN.TrangThai != 0)
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00f4ng tin n\x00e0y đ\x00e3 được xử l\x00fd, bạn kh\x00f4ng thể x\x00f3a.", ""));
                }
                else if (LVYModule.ConfirmDelete(""))
                {
                    this.objTN.DelData(this.cFrmKhoa);
                    this.EmptyData();
                }
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.EnabledControl = true;
                this.cFrmTask = "U";
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdFind_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_TiepNhanList.Show();
            MyProject.Forms.Frm_TiepNhanList.BringToFront();
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid() && this.UpDataData())
            {
                this.EnabledControl = false;
            }
        }

        private void CmdTimHangHoa_Click(object sender, EventArgs e)
        {
            string expression = SearchModule.SearchHangHoa("", "", "");
            if (expression.Trim() != "")
            {
                object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                this.TxtMaThietBi.Tag = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                this.TxtMaThietBi.Text = Conversions.ToString(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                this.TxtTenThietBi.Text = Conversions.ToString(NewLateBinding.LateIndexGet(instance, new object[] { 2 }, null));
            }
        }

        private void CmdTimSoSerial_Click(object sender, EventArgs e)
        {
            if (this.TxtSoSerial.Text.Trim() != "")
            {
                string pKhoa = "";
                pKhoa = this.objXK.TimKhoaChiTietTheoSoSerial(this.TxtSoSerial.Text.Trim());
                if (pKhoa.Trim() == "")
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng t\x00ecm thấy thiết bị c\x00f3 số serial l\x00e0", "") + ": " + this.TxtSoSerial.Text);
                }
                else
                {
                    this.objXKCT.Load(pKhoa);
                    this.objHH.Load(this.objXKCT.KhoaHangHoa);
                    this.TxtMaThietBi.Tag = this.objHH.Khoa;
                    this.TxtMaThietBi.Text = this.objHH.Ma;
                    this.TxtTenThietBi.Text = this.objHH.TenViet;
                    this.objXK.Load(this.objXKCT.KhoaPhieuXuat);
                    this.TxtNgayBan.Value = LVYModule.Char2Date(this.objXK.NgayChungTu);
                    this.TxtSoChungTuBan.Text = this.objXK.SoChungTu;
                    this.TxtSoChungTuBan.Tag = this.objXK.Khoa;
                    this.AdvKhachHang.Value = this.objXK.KhoaDoiTuong;
                    this.objDT.Load(this.objXK.KhoaDoiTuong);
                    this.TxtDienThoaiKhachHang.Text = this.objDT.DienThoai;
                    this.TxtFax.Text = this.objDT.Fax;
                    this.AdvNhanVienBanHang.Value = this.objXK.KhoaNhanVienBanHang;
                }
            }
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoaOld, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.cFrmKhoa = this.cFrmKhoaOld;
                this.ShowData(this.cFrmKhoa);
            }
            else
            {
                this.EmptyData();
            }
            if (this.cFrmTask == "I")
            {
                this.objSoCT.UndoVoucher(LVYModule.sLeft(LVYModule.Date2Char(this.TxtNgayChungTu.Text), 6));
            }
            this.cFrmTask = "";
            this.EnabledControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        public void EmptyData()
        {
            this.TxtSoChungTu.Text = "";
            this.TxtNgayChungTu.Value = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.TxtSoSerial.Text = "";
            this.TxtDienGiai.Text = "";
            this.TxtNgayBan.Value = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.TxtNgayHetHanBaoHanh.Value = "";
            this.CKConHanBaoHanh.Checked = false;
            this.AdvKhachHang.Value = "";
            this.AdvNhanVienBanHang.Value = "";
            this.AdvNhanVienTiepNhan.Value = "";
            this.TxtDiaChi.Text = "";
            this.TxtDienThoaiKhachHang.Text = "";
            this.TxtFax.Text = "";
            this.TxtMobile.Text = "";
            this.TxtNgayTiepNhan.Value = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.TxtGioTiepNhan.Text = "__:__";
            this.TxtTinhTrangThietBi.Text = "";
            this.CboDieuKienSuaChua.SelectedIndex = 0;
            this.CboTrangThai.SelectedIndex = 0;
            this.TxtNguoiLienHe.Text = "";
            this.TxtSoChungTuBan.Text = "";
            this.TxtMaThietBi.Tag = "";
            this.TxtMaThietBi.Text = "";
            this.TxtTenThietBi.Text = "";
        }

        private void Frm_TiepNhanThietBi_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.CboDieuKienSuaChua.Items.Clear();
                this.CboDieuKienSuaChua.Items.Add(modGeneral.Tranlated("Bảo h\x00e0nh sản phẩm", ""));
                this.CboDieuKienSuaChua.Items.Add(modGeneral.Tranlated("Sửa chữa thu ph\x00ed", ""));
                this.CboTrangThai.Items.Clear();
                this.CboTrangThai.Items.Add(modGeneral.Tranlated("Mới tiếp nhận", ""));
                this.CboTrangThai.Items.Add(modGeneral.Tranlated("Đ\x00e3 kiểm tra", ""));
                this.CboTrangThai.Items.Add(modGeneral.Tranlated("Ho\x00e0n tất sửa chữa", ""));
                this.CboTrangThai.Items.Add(modGeneral.Tranlated("Đ\x00e3 giao thiết bị", ""));
                if (this.cFrmKhoa.Trim() != "")
                {
                    this.ShowData(this.cFrmKhoa);
                }
                this.EnabledControl = false;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_TiepNhanThietBi));
            this.C1DockingTab1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.TxtDienGiai = new TextBox();
            this.Label18 = new Label();
            this.Label20 = new Label();
            this.Label19 = new Label();
            this.CboDieuKienSuaChua = new ComboBox();
            this.CboTrangThai = new ComboBox();
            this.GroupBox2 = new GroupBox();
            this.TxtMobile = new TextBox();
            this.Label17 = new Label();
            this.TxtNguoiLienHe = new TextBox();
            this.Label16 = new Label();
            this.AdvNhanVienTiepNhan = new ADVObjects();
            this.TxtTinhTrangThietBi = new TextBox();
            this.Label15 = new Label();
            this.Label11 = new Label();
            this.TxtGioTiepNhan = new MaskedTextBox();
            this.Label14 = new Label();
            this.TxtNgayTiepNhan = new C1DateEdit();
            this.Label13 = new Label();
            this.TxtSoChungTu = new TextBox();
            this.TxtNgayChungTu = new C1DateEdit();
            this.Label2 = new Label();
            this.Label1 = new Label();
            this.GroupBox1 = new GroupBox();
            this.TxtSoChungTuBan = new TextBox();
            this.Label21 = new Label();
            this.TxtFax = new TextBox();
            this.Label12 = new Label();
            this.TxtDienThoaiKhachHang = new TextBox();
            this.Label5 = new Label();
            this.Label10 = new Label();
            this.AdvNhanVienBanHang = new ADVObjects();
            this.TxtDiaChi = new TextBox();
            this.Label9 = new Label();
            this.Label8 = new Label();
            this.AdvKhachHang = new ADVObjects();
            this.CKConHanBaoHanh = new CheckBox();
            this.TxtNgayHetHanBaoHanh = new C1DateEdit();
            this.Label7 = new Label();
            this.TxtNgayBan = new C1DateEdit();
            this.Label6 = new Label();
            this.CmdTimHangHoa = new Button();
            this.TxtTenThietBi = new TextBox();
            this.CmdTimSoSerial = new Button();
            this.Label4 = new Label();
            this.TxtSoSerial = new TextBox();
            this.Label3 = new Label();
            this.TxtMaThietBi = new TextBox();
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.CmdPrint = new ToolStripButton();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            ((ISupportInitialize) this.C1DockingTab1).BeginInit();
            this.C1DockingTab1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            this.GroupBox2.SuspendLayout();
            ((ISupportInitialize) this.TxtNgayTiepNhan).BeginInit();
            ((ISupportInitialize) this.TxtNgayChungTu).BeginInit();
            this.GroupBox1.SuspendLayout();
            ((ISupportInitialize) this.TxtNgayHetHanBaoHanh).BeginInit();
            ((ISupportInitialize) this.TxtNgayBan).BeginInit();
            this.ToolStrip1.SuspendLayout();
            this.SuspendLayout();
            this.C1DockingTab1.Controls.Add(this.C1DockingTabPage1);
            this.C1DockingTab1.Dock = DockStyle.Fill;
            Point point = new Point(0, 0x19);
            this.C1DockingTab1.Location = point;
            this.C1DockingTab1.Name = "C1DockingTab1";
            Size size = new Size(0x349, 0x1b7);
            this.C1DockingTab1.Size = size;
            this.C1DockingTab1.TabIndex = 3;
            this.C1DockingTab1.TabsSpacing = 5;
            this.C1DockingTab1.TabStyle = TabStyleEnum.Office2007;
            this.C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.TxtDienGiai);
            this.C1DockingTabPage1.Controls.Add(this.Label18);
            this.C1DockingTabPage1.Controls.Add(this.Label20);
            this.C1DockingTabPage1.Controls.Add(this.Label19);
            this.C1DockingTabPage1.Controls.Add(this.CboDieuKienSuaChua);
            this.C1DockingTabPage1.Controls.Add(this.CboTrangThai);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox2);
            this.C1DockingTabPage1.Controls.Add(this.GroupBox1);
            point = new Point(1, 0x18);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x347, 0x19e);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Th\x00f4ng tin tiếp nhận thiết bị";
            point = new Point(0x63, 380);
            this.TxtDienGiai.Location = point;
            this.TxtDienGiai.Name = "TxtDienGiai";
            size = new Size(0x2dd, 20);
            this.TxtDienGiai.Size = size;
            this.TxtDienGiai.TabIndex = 0x42;
            this.Label18.AutoSize = true;
            this.Label18.BackColor = Color.Transparent;
            point = new Point(11, 0x17f);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x3f, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x41;
            this.Label18.Text = "Hướng xử l\x00fd";
            this.Label20.AutoSize = true;
            this.Label20.BackColor = Color.Transparent;
            point = new Point(12, 0x164);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            size = new Size(0x4a, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 0x44;
            this.Label20.Text = "Loại sửa chữa";
            this.Label19.AutoSize = true;
            this.Label19.BackColor = Color.Transparent;
            point = new Point(0x1b7, 0x164);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(0x37, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 0x42;
            this.Label19.Text = "Trạng th\x00e1i";
            this.CboDieuKienSuaChua.FormattingEnabled = true;
            this.CboDieuKienSuaChua.Items.AddRange(new object[] { "Mới tiếp nhận", "Đ\x00e3 kiểm tra", "Đ\x00e3 giao" });
            point = new Point(0x63, 0x161);
            this.CboDieuKienSuaChua.Location = point;
            this.CboDieuKienSuaChua.Name = "CboDieuKienSuaChua";
            size = new Size(0x130, 0x15);
            this.CboDieuKienSuaChua.Size = size;
            this.CboDieuKienSuaChua.TabIndex = 0x43;
            this.CboTrangThai.FormattingEnabled = true;
            this.CboTrangThai.Items.AddRange(new object[] { "Mới tiếp nhận", "Đ\x00e3 kiểm tra", "Đ\x00e3 giao" });
            point = new Point(0x211, 0x161);
            this.CboTrangThai.Location = point;
            this.CboTrangThai.Name = "CboTrangThai";
            size = new Size(0x12f, 0x15);
            this.CboTrangThai.Size = size;
            this.CboTrangThai.TabIndex = 40;
            this.GroupBox2.BackColor = Color.Transparent;
            this.GroupBox2.Controls.Add(this.TxtMobile);
            this.GroupBox2.Controls.Add(this.Label17);
            this.GroupBox2.Controls.Add(this.TxtNguoiLienHe);
            this.GroupBox2.Controls.Add(this.Label16);
            this.GroupBox2.Controls.Add(this.AdvNhanVienTiepNhan);
            this.GroupBox2.Controls.Add(this.TxtTinhTrangThietBi);
            this.GroupBox2.Controls.Add(this.Label15);
            this.GroupBox2.Controls.Add(this.Label11);
            this.GroupBox2.Controls.Add(this.TxtGioTiepNhan);
            this.GroupBox2.Controls.Add(this.Label14);
            this.GroupBox2.Controls.Add(this.TxtNgayTiepNhan);
            this.GroupBox2.Controls.Add(this.Label13);
            this.GroupBox2.Controls.Add(this.TxtSoChungTu);
            this.GroupBox2.Controls.Add(this.TxtNgayChungTu);
            this.GroupBox2.Controls.Add(this.Label2);
            this.GroupBox2.Controls.Add(this.Label1);
            point = new Point(3, 0xa1);
            this.GroupBox2.Location = point;
            this.GroupBox2.Name = "GroupBox2";
            size = new Size(0x340, 0xb0);
            this.GroupBox2.Size = size;
            this.GroupBox2.TabIndex = 0x27;
            this.GroupBox2.TabStop = false;
            this.GroupBox2.Text = "Th\x00f4ng tin tiếp nhận";
            point = new Point(0x20e, 0x38);
            this.TxtMobile.Location = point;
            this.TxtMobile.Name = "TxtMobile";
            size = new Size(0x66, 20);
            this.TxtMobile.Size = size;
            this.TxtMobile.TabIndex = 0x3f;
            this.Label17.AutoSize = true;
            this.Label17.BackColor = Color.Transparent;
            point = new Point(0x1af, 0x3b);
            this.Label17.Location = point;
            this.Label17.Name = "Label17";
            size = new Size(0x26, 13);
            this.Label17.Size = size;
            this.Label17.TabIndex = 0x40;
            this.Label17.Text = "Mobile";
            point = new Point(0x20e, 0x1d);
            this.TxtNguoiLienHe.Location = point;
            this.TxtNguoiLienHe.Name = "TxtNguoiLienHe";
            size = new Size(0x12e, 20);
            this.TxtNguoiLienHe.Size = size;
            this.TxtNguoiLienHe.TabIndex = 0x3d;
            this.Label16.AutoSize = true;
            this.Label16.BackColor = Color.Transparent;
            point = new Point(8, 0x55);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            size = new Size(0x52, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 60;
            this.Label16.Text = "Người tiếp nhận";
            this.AdvNhanVienTiepNhan.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(0x61, 0x52);
            this.AdvNhanVienTiepNhan.Location = point;
            this.AdvNhanVienTiepNhan.Name = "AdvNhanVienTiepNhan";
            this.AdvNhanVienTiepNhan.ReadOnly = false;
            size = new Size(0x12f, 20);
            this.AdvNhanVienTiepNhan.Size = size;
            this.AdvNhanVienTiepNhan.TabIndex = 0x3b;
            this.AdvNhanVienTiepNhan.UpperText = true;
            this.AdvNhanVienTiepNhan.Value = "";
            this.AdvNhanVienTiepNhan.WidthCode = 90;
            point = new Point(0x61, 0x6d);
            this.TxtTinhTrangThietBi.Location = point;
            this.TxtTinhTrangThietBi.Multiline = true;
            this.TxtTinhTrangThietBi.Name = "TxtTinhTrangThietBi";
            size = new Size(0x2db, 0x34);
            this.TxtTinhTrangThietBi.Size = size;
            this.TxtTinhTrangThietBi.TabIndex = 0x29;
            this.Label15.AutoSize = true;
            this.Label15.BackColor = Color.Transparent;
            point = new Point(8, 0x70);
            this.Label15.Location = point;
            this.Label15.Name = "Label15";
            size = new Size(0x59, 13);
            this.Label15.Size = size;
            this.Label15.TabIndex = 0x2a;
            this.Label15.Text = "T\x00ecnh trạng thiết bị";
            this.Label11.AutoSize = true;
            this.Label11.BackColor = Color.Transparent;
            point = new Point(0x1af, 0x21);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x3a, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x3b;
            this.Label11.Text = "Người giao";
            point = new Point(0x12f, 0x38);
            this.TxtGioTiepNhan.Location = point;
            this.TxtGioTiepNhan.Mask = "##:##";
            this.TxtGioTiepNhan.Name = "TxtGioTiepNhan";
            size = new Size(40, 20);
            this.TxtGioTiepNhan.Size = size;
            this.TxtGioTiepNhan.TabIndex = 40;
            this.Label14.AutoSize = true;
            this.Label14.BackColor = Color.Transparent;
            point = new Point(0xd8, 0x3b);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            size = new Size(70, 13);
            this.Label14.Size = size;
            this.Label14.TabIndex = 0x27;
            this.Label14.Text = "Giờ tiếp nhận";
            this.TxtNgayTiepNhan.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNgayTiepNhan.Calendar.AnnuallyBoldedDates = new DateTime[0];
            this.TxtNgayTiepNhan.Calendar.BoldedDates = new DateTime[0];
            this.TxtNgayTiepNhan.Calendar.ClearText = "&Clear";
            this.TxtNgayTiepNhan.Calendar.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            Padding padding = new Padding(0);
            this.TxtNgayTiepNhan.Calendar.Margin = padding;
            this.TxtNgayTiepNhan.Calendar.MonthlyBoldedDates = new DateTime[0];
            DateTime time = new DateTime(0x7d9, 8, 0x13, 0, 0, 0, 0);
            this.TxtNgayTiepNhan.Calendar.SelectedDate = time;
            this.TxtNgayTiepNhan.Calendar.TodayText = "&Today";
            this.TxtNgayTiepNhan.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayTiepNhan.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayTiepNhan.DisplayFormat.FormatType = FormatTypeEnum.ShortDate;
            this.TxtNgayTiepNhan.DisplayFormat.Inherit = FormatInfoInheritFlags.TrimEnd | FormatInfoInheritFlags.TrimStart | FormatInfoInheritFlags.EmptyAsNull | FormatInfoInheritFlags.NullText | FormatInfoInheritFlags.CustomFormat;
            this.TxtNgayTiepNhan.FormatType = FormatTypeEnum.ShortDate;
            point = new Point(0x61, 0x38);
            this.TxtNgayTiepNhan.Location = point;
            this.TxtNgayTiepNhan.Name = "TxtNgayTiepNhan";
            padding = new Padding(1);
            this.TxtNgayTiepNhan.Padding = padding;
            size = new Size(0x69, 20);
            this.TxtNgayTiepNhan.Size = size;
            this.TxtNgayTiepNhan.TabIndex = 0x24;
            this.TxtNgayTiepNhan.Tag = null;
            this.TxtNgayTiepNhan.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new Point(8, 0x3b);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x4f, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x25;
            this.Label13.Text = "Ng\x00e0y tiếp nhận";
            point = new Point(0x12f, 30);
            this.TxtSoChungTu.Location = point;
            this.TxtSoChungTu.Name = "TxtSoChungTu";
            size = new Size(0x61, 20);
            this.TxtSoChungTu.Size = size;
            this.TxtSoChungTu.TabIndex = 0x22;
            this.TxtNgayChungTu.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNgayChungTu.Calendar.AnnuallyBoldedDates = new DateTime[0];
            this.TxtNgayChungTu.Calendar.BoldedDates = new DateTime[0];
            this.TxtNgayChungTu.Calendar.ClearText = "&Clear";
            this.TxtNgayChungTu.Calendar.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            padding = new Padding(0);
            this.TxtNgayChungTu.Calendar.Margin = padding;
            this.TxtNgayChungTu.Calendar.MonthlyBoldedDates = new DateTime[0];
            time = new DateTime(0x7d9, 8, 0x13, 0, 0, 0, 0);
            this.TxtNgayChungTu.Calendar.SelectedDate = time;
            this.TxtNgayChungTu.Calendar.TodayText = "&Today";
            this.TxtNgayChungTu.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayChungTu.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayChungTu.DisplayFormat.FormatType = FormatTypeEnum.ShortDate;
            this.TxtNgayChungTu.DisplayFormat.Inherit = FormatInfoInheritFlags.TrimEnd | FormatInfoInheritFlags.TrimStart | FormatInfoInheritFlags.EmptyAsNull | FormatInfoInheritFlags.NullText | FormatInfoInheritFlags.CustomFormat;
            this.TxtNgayChungTu.FormatType = FormatTypeEnum.ShortTime;
            point = new Point(0x61, 30);
            this.TxtNgayChungTu.Location = point;
            this.TxtNgayChungTu.Name = "TxtNgayChungTu";
            padding = new Padding(1);
            this.TxtNgayChungTu.Padding = padding;
            size = new Size(0x69, 20);
            this.TxtNgayChungTu.Size = size;
            this.TxtNgayChungTu.TabIndex = 0;
            this.TxtNgayChungTu.Tag = null;
            this.TxtNgayChungTu.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(0xd8, 0x21);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x41, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x23;
            this.Label2.Text = "Số chứng từ";
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(8, 0x21);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x4d, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 1;
            this.Label1.Text = "Ng\x00e0y chứng từ";
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.TxtSoChungTuBan);
            this.GroupBox1.Controls.Add(this.Label21);
            this.GroupBox1.Controls.Add(this.TxtFax);
            this.GroupBox1.Controls.Add(this.Label12);
            this.GroupBox1.Controls.Add(this.TxtDienThoaiKhachHang);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.Label10);
            this.GroupBox1.Controls.Add(this.AdvNhanVienBanHang);
            this.GroupBox1.Controls.Add(this.TxtDiaChi);
            this.GroupBox1.Controls.Add(this.Label9);
            this.GroupBox1.Controls.Add(this.Label8);
            this.GroupBox1.Controls.Add(this.AdvKhachHang);
            this.GroupBox1.Controls.Add(this.CKConHanBaoHanh);
            this.GroupBox1.Controls.Add(this.TxtNgayHetHanBaoHanh);
            this.GroupBox1.Controls.Add(this.Label7);
            this.GroupBox1.Controls.Add(this.TxtNgayBan);
            this.GroupBox1.Controls.Add(this.Label6);
            this.GroupBox1.Controls.Add(this.CmdTimHangHoa);
            this.GroupBox1.Controls.Add(this.TxtTenThietBi);
            this.GroupBox1.Controls.Add(this.CmdTimSoSerial);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.TxtSoSerial);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.TxtMaThietBi);
            point = new Point(5, 14);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(830, 0x86);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0x26;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Th\x00f4ng tin thiết bị";
            point = new Point(0x12d, 0x33);
            this.TxtSoChungTuBan.Location = point;
            this.TxtSoChungTuBan.Name = "TxtSoChungTuBan";
            size = new Size(0x61, 20);
            this.TxtSoChungTuBan.Size = size;
            this.TxtSoChungTuBan.TabIndex = 0x41;
            this.Label21.AutoSize = true;
            this.Label21.BackColor = Color.Transparent;
            point = new Point(0xe4, 0x37);
            this.Label21.Location = point;
            this.Label21.Name = "Label21";
            size = new Size(0x47, 13);
            this.Label21.Size = size;
            this.Label21.TabIndex = 0x42;
            this.Label21.Text = "Chứng từ b\x00e1n";
            point = new Point(0x2cf, 0x4b);
            this.TxtFax.Location = point;
            this.TxtFax.Name = "TxtFax";
            size = new Size(0x6b, 20);
            this.TxtFax.Size = size;
            this.TxtFax.TabIndex = 0x3f;
            this.Label12.AutoSize = true;
            this.Label12.BackColor = Color.Transparent;
            point = new Point(0x2a0, 0x4e);
            this.Label12.Location = point;
            this.Label12.Name = "Label12";
            size = new Size(0x18, 13);
            this.Label12.Size = size;
            this.Label12.TabIndex = 0x40;
            this.Label12.Text = "Fax";
            point = new Point(0x20c, 0x4b);
            this.TxtDienThoaiKhachHang.Location = point;
            this.TxtDienThoaiKhachHang.Name = "TxtDienThoaiKhachHang";
            size = new Size(0x68, 20);
            this.TxtDienThoaiKhachHang.Size = size;
            this.TxtDienThoaiKhachHang.TabIndex = 0x3d;
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            point = new Point(0x1af, 0x4e);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x37, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x3e;
            this.Label5.Text = "Điện thoại";
            this.Label10.AutoSize = true;
            this.Label10.BackColor = Color.Transparent;
            point = new Point(0x1af, 0x68);
            this.Label10.Location = point;
            this.Label10.Name = "Label10";
            size = new Size(0x3d, 13);
            this.Label10.Size = size;
            this.Label10.TabIndex = 0x3a;
            this.Label10.Text = "Kinh doanh";
            this.AdvNhanVienBanHang.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(0x20c, 0x65);
            this.AdvNhanVienBanHang.Location = point;
            this.AdvNhanVienBanHang.Name = "AdvNhanVienBanHang";
            this.AdvNhanVienBanHang.ReadOnly = false;
            size = new Size(0x12e, 20);
            this.AdvNhanVienBanHang.Size = size;
            this.AdvNhanVienBanHang.TabIndex = 0x39;
            this.AdvNhanVienBanHang.UpperText = true;
            this.AdvNhanVienBanHang.Value = "";
            this.AdvNhanVienBanHang.WidthCode = 90;
            point = new Point(0x20c, 0x31);
            this.TxtDiaChi.Location = point;
            this.TxtDiaChi.Name = "TxtDiaChi";
            size = new Size(0x12e, 20);
            this.TxtDiaChi.Size = size;
            this.TxtDiaChi.TabIndex = 0x38;
            this.Label9.AutoSize = true;
            this.Label9.BackColor = Color.Transparent;
            point = new Point(0x1af, 0x34);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            size = new Size(40, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x37;
            this.Label9.Text = "Địa chỉ";
            this.Label8.AutoSize = true;
            this.Label8.BackColor = Color.Transparent;
            point = new Point(0x1af, 0x19);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x41, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 0x36;
            this.Label8.Text = "Kh\x00e1ch h\x00e0ng";
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new Point(0x20c, 0x17);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = false;
            size = new Size(0x12e, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 0x35;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 90;
            this.CKConHanBaoHanh.AutoSize = true;
            point = new Point(0x61, 0x68);
            this.CKConHanBaoHanh.Location = point;
            this.CKConHanBaoHanh.Name = "CKConHanBaoHanh";
            size = new Size(0x72, 0x11);
            this.CKConHanBaoHanh.Size = size;
            this.CKConHanBaoHanh.TabIndex = 0x34;
            this.CKConHanBaoHanh.Text = "C\x00f2n hạn bảo h\x00e0nh";
            this.CKConHanBaoHanh.UseVisualStyleBackColor = true;
            this.TxtNgayHetHanBaoHanh.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNgayHetHanBaoHanh.Calendar.AnnuallyBoldedDates = new DateTime[0];
            this.TxtNgayHetHanBaoHanh.Calendar.BoldedDates = new DateTime[0];
            this.TxtNgayHetHanBaoHanh.Calendar.ClearText = "&Clear";
            this.TxtNgayHetHanBaoHanh.Calendar.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            padding = new Padding(0);
            this.TxtNgayHetHanBaoHanh.Calendar.Margin = padding;
            this.TxtNgayHetHanBaoHanh.Calendar.MonthlyBoldedDates = new DateTime[0];
            time = new DateTime(0x7d9, 8, 0x13, 0, 0, 0, 0);
            this.TxtNgayHetHanBaoHanh.Calendar.SelectedDate = time;
            this.TxtNgayHetHanBaoHanh.Calendar.TodayText = "&Today";
            this.TxtNgayHetHanBaoHanh.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayHetHanBaoHanh.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayHetHanBaoHanh.DisplayFormat.FormatType = FormatTypeEnum.ShortDate;
            this.TxtNgayHetHanBaoHanh.DisplayFormat.Inherit = FormatInfoInheritFlags.TrimEnd | FormatInfoInheritFlags.TrimStart | FormatInfoInheritFlags.EmptyAsNull | FormatInfoInheritFlags.NullText | FormatInfoInheritFlags.CustomFormat;
            this.TxtNgayHetHanBaoHanh.FormatType = FormatTypeEnum.ShortDate;
            point = new Point(0x12d, 0x4c);
            this.TxtNgayHetHanBaoHanh.Location = point;
            this.TxtNgayHetHanBaoHanh.Name = "TxtNgayHetHanBaoHanh";
            padding = new Padding(1);
            this.TxtNgayHetHanBaoHanh.Padding = padding;
            size = new Size(0x61, 20);
            this.TxtNgayHetHanBaoHanh.Size = size;
            this.TxtNgayHetHanBaoHanh.TabIndex = 0x33;
            this.TxtNgayHetHanBaoHanh.Tag = null;
            this.TxtNgayHetHanBaoHanh.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.Label7.AutoSize = true;
            this.Label7.BackColor = Color.Transparent;
            point = new Point(200, 80);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x65, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 50;
            this.Label7.Text = "Bảo h\x00e0nh đến ng\x00e0y";
            this.TxtNgayBan.BorderStyle = BorderStyle.FixedSingle;
            this.TxtNgayBan.Calendar.AnnuallyBoldedDates = new DateTime[0];
            this.TxtNgayBan.Calendar.BoldedDates = new DateTime[0];
            this.TxtNgayBan.Calendar.ClearText = "&Clear";
            this.TxtNgayBan.Calendar.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            padding = new Padding(0);
            this.TxtNgayBan.Calendar.Margin = padding;
            this.TxtNgayBan.Calendar.MonthlyBoldedDates = new DateTime[0];
            time = new DateTime(0x7d9, 8, 0x13, 0, 0, 0, 0);
            this.TxtNgayBan.Calendar.SelectedDate = time;
            this.TxtNgayBan.Calendar.TodayText = "&Today";
            this.TxtNgayBan.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayBan.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.System;
            this.TxtNgayBan.DisplayFormat.FormatType = FormatTypeEnum.ShortDate;
            this.TxtNgayBan.DisplayFormat.Inherit = FormatInfoInheritFlags.TrimEnd | FormatInfoInheritFlags.TrimStart | FormatInfoInheritFlags.EmptyAsNull | FormatInfoInheritFlags.NullText | FormatInfoInheritFlags.CustomFormat;
            this.TxtNgayBan.FormatType = FormatTypeEnum.ShortDate;
            point = new Point(0x61, 0x4c);
            this.TxtNgayBan.Location = point;
            this.TxtNgayBan.Name = "TxtNgayBan";
            padding = new Padding(1);
            this.TxtNgayBan.Padding = padding;
            size = new Size(0x65, 20);
            this.TxtNgayBan.Size = size;
            this.TxtNgayBan.TabIndex = 0x31;
            this.TxtNgayBan.Tag = null;
            this.TxtNgayBan.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.Label6.AutoSize = true;
            this.Label6.BackColor = Color.Transparent;
            point = new Point(9, 0x4e);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x35, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x30;
            this.Label6.Text = "Ng\x00e0y b\x00e1n";
            point = new Point(0x18e, 0x17);
            this.CmdTimHangHoa.Location = point;
            this.CmdTimHangHoa.Name = "CmdTimHangHoa";
            size = new Size(0x18, 0x16);
            this.CmdTimHangHoa.Size = size;
            this.CmdTimHangHoa.TabIndex = 0x2c;
            this.CmdTimHangHoa.Text = "...";
            this.CmdTimHangHoa.UseVisualStyleBackColor = true;
            point = new Point(0xc6, 0x18);
            this.TxtTenThietBi.Location = point;
            this.TxtTenThietBi.Name = "TxtTenThietBi";
            this.TxtTenThietBi.ReadOnly = true;
            size = new Size(200, 20);
            this.TxtTenThietBi.Size = size;
            this.TxtTenThietBi.TabIndex = 0x2b;
            point = new Point(0xc5, 0x31);
            this.CmdTimSoSerial.Location = point;
            this.CmdTimSoSerial.Name = "CmdTimSoSerial";
            size = new Size(0x18, 0x16);
            this.CmdTimSoSerial.Size = size;
            this.CmdTimSoSerial.TabIndex = 0x2a;
            this.CmdTimSoSerial.Text = "...";
            this.CmdTimSoSerial.UseVisualStyleBackColor = true;
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(9, 0x35);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x2f, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x29;
            this.Label4.Text = "Số serial";
            point = new Point(0x61, 50);
            this.TxtSoSerial.Location = point;
            this.TxtSoSerial.Name = "TxtSoSerial";
            size = new Size(100, 20);
            this.TxtSoSerial.Size = size;
            this.TxtSoSerial.TabIndex = 40;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(9, 0x19);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x38, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x27;
            this.Label3.Text = "M\x00e3 thiết bị";
            point = new Point(0x61, 0x18);
            this.TxtMaThietBi.Location = point;
            this.TxtMaThietBi.Name = "TxtMaThietBi";
            this.TxtMaThietBi.ReadOnly = true;
            size = new Size(100, 20);
            this.TxtMaThietBi.Size = size;
            this.TxtMaThietBi.TabIndex = 0x26;
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x349, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0x16;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x48, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2d, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x37, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x43, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x25, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2d, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x37, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.Magenta;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x30, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "&Help";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x349, 0x1d0);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.C1DockingTab1);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_TiepNhanThietBi";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "SC-0001";
            this.Text = "TIEP NHAN THIET BI";
            ((ISupportInitialize) this.C1DockingTab1).EndInit();
            this.C1DockingTab1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.C1DockingTabPage1.PerformLayout();
            this.GroupBox2.ResumeLayout(false);
            this.GroupBox2.PerformLayout();
            ((ISupportInitialize) this.TxtNgayTiepNhan).EndInit();
            ((ISupportInitialize) this.TxtNgayChungTu).EndInit();
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            ((ISupportInitialize) this.TxtNgayHetHanBaoHanh).EndInit();
            ((ISupportInitialize) this.TxtNgayBan).EndInit();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void ShowData(string pKhoa)
        {
            clsSuaChuaThietBi objTN = this.objTN;
            objTN.Load(pKhoa);
            this.cFrmKhoa = objTN.Khoa;
            this.TxtSoChungTu.Text = objTN.SoChungTu;
            this.TxtSoChungTuBan.Text = objTN.SoPhieuXuat;
            this.TxtSoChungTuBan.Tag = objTN.KhoaPhieuXuat;
            this.TxtNgayChungTu.Value = LVYModule.Char2Date(objTN.NgayChungTu);
            this.TxtNgayBan.Value = LVYModule.Char2Date(objTN.NgayBan);
            this.TxtNgayTiepNhan.Value = LVYModule.Char2Date(objTN.NgayTiepNhan);
            this.objHH.Load(objTN.KhoaHangHoa);
            this.TxtMaThietBi.Tag = objTN.KhoaHangHoa;
            this.TxtMaThietBi.Text = this.objHH.Ma;
            this.TxtTenThietBi.Text = this.objHH.TenViet;
            this.AdvNhanVienBanHang.Value = objTN.KhoaNhanVienBanHang;
            this.AdvNhanVienTiepNhan.Value = objTN.KhoaNhanVienTiepNhan;
            this.AdvKhachHang.Value = objTN.KhoaDoiTuong;
            this.TxtSoSerial.Text = objTN.SoSerial;
            this.TxtNgayHetHanBaoHanh.Value = objTN.ThoiHanBaoHanh;
            this.TxtNguoiLienHe.Text = objTN.NguoiLienHe;
            this.TxtMobile.Text = objTN.DienThoaiDiDong;
            this.TxtGioTiepNhan.Text = objTN.GioTiepNhan;
            this.TxtDienGiai.Text = objTN.DienGiai;
            this.CboTrangThai.SelectedIndex = objTN.TrangThai;
            this.CboDieuKienSuaChua.SelectedIndex = objTN.LoaiSuaChua;
            this.CKConHanBaoHanh.Checked = objTN.ConHanBaoHanh > 0;
            this.TxtTinhTrangThietBi.Text = objTN.TinhTrangThietBi;
            this.TxtNgayHetHanBaoHanh.Value = LVYModule.Char2Date(objTN.ThoiHanBaoHanh);
            objTN = null;
        }

        public bool UpDataData()
        {
            clsSuaChuaThietBi objTN = this.objTN;
            objTN.Khoa = this.cFrmKhoa;
            objTN.SoChungTu = this.TxtSoChungTu.Text;
            objTN.NgayChungTu = LVYModule.Date2Char(this.TxtNgayChungTu.Text);
            objTN.KhoaPhieuXuat = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtSoChungTuBan.Tag), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
            objTN.NgayBan = LVYModule.Date2Char(this.TxtNgayBan.Text);
            objTN.SoPhieuXuat = this.TxtSoChungTu.Text.Trim();
            objTN.KhoaHangHoa = Conversions.ToString(this.TxtMaThietBi.Tag);
            objTN.KhoaNhanVienBanHang = this.AdvNhanVienBanHang.Value;
            objTN.KhoaNhanVienTiepNhan = this.AdvNhanVienTiepNhan.Value;
            objTN.KhoaDoiTuong = this.AdvKhachHang.Value;
            objTN.SoSerial = this.TxtSoSerial.Text;
            objTN.ThoiHanBaoHanh = LVYModule.Date2Char(this.TxtNgayHetHanBaoHanh.Text);
            objTN.NguoiLienHe = this.TxtNguoiLienHe.Text;
            objTN.DienThoaiDiDong = this.TxtMobile.Text.Trim();
            objTN.NgayTiepNhan = LVYModule.Date2Char(this.TxtNgayTiepNhan.Text);
            objTN.GioTiepNhan = this.TxtGioTiepNhan.Text.Trim();
            objTN.DienGiai = this.TxtDienGiai.Text;
            objTN.TinhTrangThietBi = this.TxtTinhTrangThietBi.Text.Trim();
            objTN.TrangThai = this.CboTrangThai.SelectedIndex;
            objTN.LoaiSuaChua = this.CboDieuKienSuaChua.SelectedIndex;
            if (this.CKConHanBaoHanh.Checked)
            {
                objTN.ConHanBaoHanh = 1;
            }
            else
            {
                objTN.ConHanBaoHanh = 0;
            }
            if (!objTN.Save())
            {
                return false;
            }
            objTN = null;
            return true;
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                ADVObjects.ValueChangedEventHandler handler = new ADVObjects.ValueChangedEventHandler(this.AdvKhachHang_ValueChanged);
                if (this._AdvKhachHang != null)
                {
                    this._AdvKhachHang.ValueChanged -= handler;
                }
                this._AdvKhachHang = value;
                if (this._AdvKhachHang != null)
                {
                    this._AdvKhachHang.ValueChanged += handler;
                }
            }
        }

        internal virtual ADVObjects AdvNhanVienBanHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVienBanHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhanVienBanHang = value;
            }
        }

        internal virtual ADVObjects AdvNhanVienTiepNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVienTiepNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhanVienTiepNhan = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual ComboBox CboDieuKienSuaChua
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDieuKienSuaChua;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDieuKienSuaChua = value;
            }
        }

        internal virtual ComboBox CboTrangThai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTrangThai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboTrangThai = value;
            }
        }

        internal virtual CheckBox CKConHanBaoHanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKConHanBaoHanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKConHanBaoHanh = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdFind_Click);
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click -= handler;
                }
                this._CmdFind = value;
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdHelp = value;
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdPrint = value;
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual Button CmdTimHangHoa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTimHangHoa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTimHangHoa_Click);
                if (this._CmdTimHangHoa != null)
                {
                    this._CmdTimHangHoa.Click -= handler;
                }
                this._CmdTimHangHoa = value;
                if (this._CmdTimHangHoa != null)
                {
                    this._CmdTimHangHoa.Click += handler;
                }
            }
        }

        internal virtual Button CmdTimSoSerial
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTimSoSerial;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTimSoSerial_Click);
                if (this._CmdTimSoSerial != null)
                {
                    this._CmdTimSoSerial.Click -= handler;
                }
                this._CmdTimSoSerial = value;
                if (this._CmdTimSoSerial != null)
                {
                    this._CmdTimSoSerial.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnableControl;
            }
            set
            {
                this.mEnableControl = value;
                this.TxtSoChungTu.ReadOnly = !value;
                this.TxtNgayChungTu.ReadOnly = !value;
                this.TxtSoSerial.ReadOnly = !value;
                this.TxtDienGiai.ReadOnly = !value;
                this.TxtNgayBan.ReadOnly = !value;
                this.TxtNgayHetHanBaoHanh.ReadOnly = !value;
                this.CKConHanBaoHanh.Enabled = value;
                this.AdvKhachHang.ReadOnly = !value;
                this.AdvNhanVienBanHang.ReadOnly = !value;
                this.AdvNhanVienTiepNhan.ReadOnly = !value;
                this.TxtDiaChi.ReadOnly = !value;
                this.TxtDienThoaiKhachHang.ReadOnly = !value;
                this.TxtFax.ReadOnly = !value;
                this.TxtMobile.ReadOnly = !value;
                this.TxtNgayTiepNhan.ReadOnly = !value;
                this.TxtGioTiepNhan.ReadOnly = !value;
                this.TxtTinhTrangThietBi.ReadOnly = !value;
                this.CboDieuKienSuaChua.Enabled = value;
                this.CboTrangThai.Enabled = value;
                this.CmdTimHangHoa.Enabled = value;
                this.CmdTimSoSerial.Enabled = value;
                this.TxtNguoiLienHe.ReadOnly = !value;
                this.TxtSoChungTuBan.ReadOnly = !value;
                this.CmdAdd.Enabled = !value & this.mAllowEdit;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.CmdExit.Enabled = !value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual GroupBox GroupBox2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox2 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label10
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label10;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label10 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label12 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label15
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label15;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label15 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label17
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label17;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label17 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label21
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label21;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label21 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual TextBox TxtDiaChi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDiaChi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDiaChi = value;
            }
        }

        internal virtual TextBox TxtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiai = value;
            }
        }

        internal virtual TextBox TxtDienThoaiKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienThoaiKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienThoaiKhachHang = value;
            }
        }

        internal virtual TextBox TxtFax
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtFax;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtFax = value;
            }
        }

        internal virtual MaskedTextBox TxtGioTiepNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtGioTiepNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtGioTiepNhan = value;
            }
        }

        internal virtual TextBox TxtMaThietBi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMaThietBi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtMaThietBi = value;
            }
        }

        internal virtual TextBox TxtMobile
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMobile;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtMobile = value;
            }
        }

        internal virtual C1DateEdit TxtNgayBan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayBan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayBan = value;
            }
        }

        internal virtual C1DateEdit TxtNgayChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTu = value;
            }
        }

        internal virtual C1DateEdit TxtNgayHetHanBaoHanh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayHetHanBaoHanh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayHetHanBaoHanh = value;
            }
        }

        internal virtual C1DateEdit TxtNgayTiepNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayTiepNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayTiepNhan = value;
            }
        }

        internal virtual TextBox TxtNguoiLienHe
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNguoiLienHe;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNguoiLienHe = value;
            }
        }

        internal virtual TextBox TxtSoChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTu = value;
            }
        }

        internal virtual TextBox TxtSoChungTuBan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTuBan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTuBan = value;
            }
        }

        internal virtual TextBox TxtSoSerial
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoSerial;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoSerial = value;
            }
        }

        internal virtual TextBox TxtTenThietBi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenThietBi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenThietBi = value;
            }
        }

        internal virtual TextBox TxtTinhTrangThietBi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTinhTrangThietBi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTinhTrangThietBi = value;
            }
        }
    }
}

